﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HtmlRepresentation.aspx.cs" Inherits="Website.Views.Page.HtmlRepresentation" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title><%= HttpUtility.HtmlEncode(this.ViewData.Model.Title)%></title>
    <link rel="alternate" type="application/atom+xml" title="Atom feed for <%= HttpUtility.HtmlEncode(this.ViewData.Model.Title)%>" href="<%= Request.Url.OriginalString.Replace(".html", ".atom") %> %>" />
    <link href="/Content/Site.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/Content/Page.js"></script>
</head>
<body>
<h1><%= HttpUtility.HtmlEncode(this.ViewData.Model.Title)%></h1>
<hr />
<p><a href="~/" runat="server">Home</a>
<% if (this.ViewData.Model.IsAvailable) { %>
&nbsp;|&nbsp;<a href="#" rel="nofollow" onclick="displayEdit('/page/<%= this.ViewData.Model.Title%>')">Edit</a>
&nbsp;|&nbsp;<a href="#" rel="nofollow" onclick="deleteResource('/page/<%= this.ViewData.Model.Title%>')">Remove</a>
<% } %>
</p>
<hr />
<div id="edit">
<% if (this.ViewData.Model.IsAvailable) { %>
<%= this.ViewData.Model.BodyAsHtml%>
<% } else { %>
<p>This wiki does not have an article with this exact name.</p>
<ul><li><a href="#" rel="nofollow" onclick="displayEdit('/page/<%= this.ViewData.Model.Title%>')">Start the <em><%= HttpUtility.HtmlEncode(this.ViewData.Model.Title)%></em> article</a></li></ul>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<% } %>
</div>
</body>
</html>